﻿using iMES.Entity.SystemModels;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace iMES.Entity.DomainModels
{
    public partial class Ware_Reservoir: SysEntity
    {
        /// <summary>
        ///库区主键
        /// </summary>
        [Key]
        [Display(Name = "库区主键")]
        [Column(TypeName = "uniqueidentifier")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public Guid ReserId { get; set; }
        /// <summary>
        ///库区名称
        /// </summary>
        [Display(Name = "库区名称")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        [Editable(true)]
        public string ReserName { get; set; }
        ///库区编号
        /// </summary>
        [Display(Name = "库区编号")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        public string ReserCode { get; set; }
        /// <summary>
        ///面积
        /// </summary>
        [Display(Name = "面积")]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int ReserSqure { get; set; }
        /// <summary>
        ///仓库主键（所属仓库）
        /// </summary>
        [Display(Name = "所属仓库")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        [Editable(true)]
        public string WareId { get; set; }
        /// <summary>
        ///库位数量
        /// </summary>
        [Display(Name = "库位数量")]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int ReserNum { get; set; }
        /// <summary>
        ///备注
        /// </summary>
        [Display(Name = "备注")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        public string ReseNote { get; set; }
    }
}
